<?php

namespace App\Http\Controllers;

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Support\Facades\Cache;

class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;


    public function test()
    {
//        Cache::get();
        $a = new aa();
        $res = $a ?->ddd() ? : "ccc";



        return $res;
    }

}


class aa
{

    private int|float $a;

    public function ddd()
    {
        return 0;
    }
}
